/**
 * 一定左侧导航栏
 */
Ext.define('AM.view.Nav',{
	extend:'Ext.panel.Panel',
	alias:'widget.nav',//别名
	title:'管理菜单',
	layout : 'accordion',
	initComponent:function(){
		this.items=[{
            title: '系统菜单',
            layout: 'fit',
            items: [{
            	xtype: 'treepanel',
                border: 0,
                rootVisible: false,
                root: {
                    expanded: false,
                    children: [
                        { id: "101", text: "用户管理", leaf: true, href: '#' },
                        { id: "102", text: "密码修改", leaf: true, href: '#' }
                    ]
                }
            }],
        },{
        	title:'菜单2',
        	layout:'fit',
        	items:[{
        		xtype: 'treepanel',
                border: 0,
                rootVisible: false,
                root: {
                    expanded: false,
                    children: [
                        { id: "201", text: "菜单2_01", leaf: true, href: '#' },
                        { id: "202", text: "菜单2_02", leaf: true, href: '#' },
                        { id: "203", text: "菜单2_03", leaf: true, href: '#' },
                    ]
                }
        	}],
        },{
        	title:'菜单3',
        	layout:'fit',
        	items:[{
        		xtype: 'treepanel',
                border: 0,
                rootVisible: false,
                root: {
                    expanded: false,
                    children: [
                        { id: "301", text: "菜单3_01", leaf: true, href: '#' },
                        { id: "302", text: "菜单3_02", leaf: true, href: '#' },
                        { id: "303", text: "菜单3_03", leaf: true, href: '#' },
                    ]
                }
        	}],
        },{
        	title:'菜单4',
        	layout:'fit',
        	items:[{
        		xtype: 'treepanel',
                border: 0,
                rootVisible: false,
                root: {
                    expanded: false,
                    children: [
                        { id: "401", text: "菜单4_01", leaf: true, href: '#' },
                        { id: "402", text: "菜单4_02", leaf: true, href: '#' },
                        { id: "403", text: "菜单4_03", leaf: true, href: '#' },
                    ]
                }
        	}],
        },{
        	title:'菜单5',
        	layout:'fit',
        	items:[{
        		xtype: 'treepanel',
                border: 0,
                rootVisible: false,
                root: {
                    expanded: false,
                    children: [
                        { id: "501", text: "菜单5_01", leaf: true, href: '#' },
                        { id: "502", text: "菜单5_02", leaf: true, href: '#' },
                        { id: "503", text: "菜单5_03", leaf: true, href: '#' },
                    ]
                }
        	}],
        },{
        	title:'菜单6',
        	layout:'fit',
        	items:[{
        		xtype: 'treepanel',
                border: 0,
                rootVisible: false,
                root: {
                    expanded: false,
                    children: [
                        { id: "601", text: "菜单6_01", leaf: true, href: '#' },
                        { id: "602", text: "菜单6_02", leaf: true, href: '#' },
                        { id: "603", text: "菜单6_03", leaf: true, href: '#' },
                    ]
                }
        	}],
        }];
		
	}
	
});